//
//  Int+Extension.swift
//  chat
//
//  Created by Meak Tsui on 2018/10/24.
//  Copyright © 2018 Meak Tsui. All rights reserved.
//

import Foundation


extension Int {
    
    public func times (_ lamada: @escaping (_ time:Int) -> ()) {
        if self == 0 {
            return
        }
        for time in 1...self {
            lamada(time)
        }
    }
}
